import {Injectable} from "@nestjs/common";
import {InjectRepository} from "@nestjs/typeorm";
import {DemoTestOneEntity} from "../po/DemoTestOne.entity";
import {Repository} from "typeorm";

@Injectable()
export class DemoTestOneDao {

    constructor(
        @InjectRepository(DemoTestOneEntity)
        private readonly demoTestOneDaoRepository: Repository<DemoTestOneEntity>,
    ) {
    }

    async selectDemoTestOneById(id: number) {
        return this.demoTestOneDaoRepository.findOne({
            where: {
                testId: id
            },
        });
    }


}
